package com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.Question;

import javax.servlet.ServletOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;

public interface QuestionService {
    PageInfo<Question> findAll(String page, String size);

    String save(Question question ,boolean flag);

    Question findById(String id);

    void update(Question question,boolean flag);

    void delete(String id);

    ByteArrayOutputStream getReport() throws IOException;

    void getReport(ServletOutputStream outputStream) throws IOException;
}
